package com.example.egarticle.controller;

import com.example.egarticle.pojo.dto.UserLoginParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpSession;

@Slf4j
@RestControllerAdvice
@RequestMapping("/v1/User/")
public class UseController {
    @PostMapping("login")
    public String addUser(@RequestBody @Validated UserLoginParam userLoginParam , @ApiIgnore HttpSession session){
        log.debug(userLoginParam+"userLoginParam");

        //session.setAttribute("user",UserVo);
        return "addUser";
    }
}
